<%@ Page Language="VB" AutoEventWireup="false" CodeFile="SQTableE.aspx.vb" Inherits="TableE" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">    
    <link href="ADStyles.css" rel="stylesheet" type="text/css" />
    <title><%=me.FormLabel %></title>
</head>

<script type="text/javascript" language="javascript">
function NewWindowForPrinting()
{
    var WinRef = window.open('','Table_List','width=515,height=600'
                           +',menubar=1'
                           +',toolbar=1'
                           +',status=0'
                           +',scrollbars=1'
                           +',resizable=1');
   
    var oContent=document.getElementById('divWindowBody');
    WinRef.document.write('<html>');
    WinRef.document.write('<head>');
    WinRef.document.write('<title>Table List</title>');
    WinRef.document.write('<style type=\"text/css\">\r');
    WinRef.document.write('body\r');
    WinRef.document.write('{\r');
    WinRef.document.write('font-family: Verdana, Arial, Helvetica, sans-serif;\r');
    WinRef.document.write('font-size:	10px;\r');    
    WinRef.document.write('}\r');
    WinRef.document.write('tr\r');
    WinRef.document.write('{\r');
    WinRef.document.write('font-family: Verdana, Arial, Helvetica, sans-serif;\r');
    WinRef.document.write('font-size:	10px;\r');    
    WinRef.document.write('}\r');    
    WinRef.document.write('</style>\r');
    WinRef.document.write('<link href=\"http://<%=Session("BASEDIR")%>/SAD/ADStyles.css\" rel=\"stylesheet\" type=\"text/css\"/>');
    WinRef.document.write('</head>');
    WinRef.document.write('<body style=\"font-size: 10px;\"/>');
    WinRef.document.write(oContent.innerHTML);  
    WinRef.document.write('</body>');
    WinRef.document.write('</html>');
    WinRef.document.close();
}

function onLoad()
{
    var TopWindow=top.window.document;
    
    var DashTitle=TopWindow.getElementById('DashboardTitle');
    var DashMode=TopWindow.getElementById('DMode');
    var MyServer=TopWindow.getElementById('SID');
    
    if (DashTitle!=null) DashTitle.innerHTML='<%=me.FormLabel %>';
    if (DashMode!=null) DashMode.value='<%=me.EditMode %>';
    if (MyServer!=null) MyServer.value='<%=me.ServerID %>';
    
    //--Hide toolbar buttons?
    var q=window.location.search;
    var isprint=q.indexOf('&F=');
    
    if (isprint>0)
    {        
        var tb2=document.getElementById('cmdView');
        tb2.style.visibility = 'hidden';
    }
}
</script>

<body onload="onLoad();">
    <form id="form1" runat="server">
    <div id="divWindowBody">
    <%me.ShowTableList %>
    </div>
    
    <div style="position:absolute; top: 19px; left: 350px;">
    <a href="" 
        runat="server" 
        id="ARefresh">
    <img src="images/tb_refresh.jpg"   
         title="Refresh"
         alt="Refresh" 
         border="0" />
    </a>
    
    <input type="image"
           src="images/tb_newwindow.jpg"
           onclick="javascript:NewWindowForPrinting();"  
           title="View in seperate window for printing"
           alt="View in seperate window for printing" />
    </div>
    
    <input type="hidden" id="hidSID" runat="server" />
    <input type="hidden" id="hidDID" runat="server" />
    <input type="hidden" id="hidSort" runat="server" />
    </form>
</body>
</html>
